Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extraction: reduce krml output unless -d/--debug #3528

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mtzguido
Copy link
Member

@mtzguido mtzguido commented Oct 5, 2024

Hi @msprotz , wondering if you think this makes sense. I usually see a lot of output from extraction runs that are all benign. This would prevent them unless you pass -d (#3527) or some other debug toggle.

Karamel extraction prints many warnings when definitions cannot be
extracted, but most of these are benign, since they are just types, or
ghost code, etc. This patch disables these warnings unless some
debugging is enabled.
@mtzguido
Copy link
Member Author

mtzguido commented Oct 7, 2024

Just making a note: I should probably update the section here before merging, or make krml pass -d when it invokes F* https://fstarlang.github.io/lowstar/html/Core.html?highlight=extracting#some-non-low-code

@msprotz
Copy link
Collaborator

msprotz commented Oct 7, 2024

No objection for me, maybe this ties in to your other PR (or discussion) about having something like assert_lowstar or something that then would always print out an error if there's an issue.

@mtzguido
Copy link
Member Author

mtzguido commented Oct 7, 2024

Yes absolutely, I need to do that too : )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants